import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Other from '../views/Other.vue'
import Mine from '../views/Mine.vue'
import Order from '../views/Order.vue'
import GoodsList from '../views/Goods_list.vue'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/other',
    name: 'other',
    component: Other
  },
  {
    path: '/mine',
    name: 'mine',
    component: Mine
  },
  {
    path: '/order',
    name: 'order',
    component: Order
  },
  {
    path: '/goods_list',
    name: 'goods_list',
    component: GoodsList
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
